import java.util.ArrayList;

public abstract class AllyControlCenter {
    protected String allyName;
    protected ArrayList<Observer> players = new ArrayList<Observer>();

    public void setAllyName(String allyName){
        this.allyName = allyName;
    }

    public String getAllyName(){
        return this.allyName;
    }

    public void join(Observer observer){
        players.add(observer);
    }

    public void quit(Observer observer){
        players.remove(observer);
    }

    public abstract void notifyObserver(String name);
}
